package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Discuss;
import cn.wolfcode.trip.base.query.DiscussQuery;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface DiscussMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Discuss record);

    Discuss selectByPrimaryKey(Long id);

    List<Discuss> selectAll();

    int updateByPrimaryKey(Discuss record);

    List<Discuss> selectForlist(DiscussQuery qo);//分页,父评论

    List<Discuss> selectTwolist(DiscussQuery qo);//一级回复
}